package team.first.mongodb.doc;

import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import lombok.Data;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

import java.time.LocalDate;
import java.util.List;

@Entity(value = "staff",  useDiscriminator = false)
@Data
@Accessors(chain = true)
public class StaffDoc {

    @Id
    private ObjectId objectId;
    private Integer id;
    private String chineseName;
    private String englishName;
    private String gender;
    private String region;
    private LocalDate birthday;
    private String summary;
    private String avatarUrl;
    private String avatar;
    private List<FilmographyDoc> acted;
    private List<FilmographyDoc> directed;
}
